<!-- GroupAssignmentChoiceWidget.html -->
<script type="text/javascript">
	$(function() {
		$("#template").accordion({
			collapsible: true,
			autoHeight: false
		});
	});
</script>
<div id="template">
	<!-- Default option -->
	<h3><a href='#'>Standard Pages</a></h3>
	<div>
		<ul>
			<input type=radio name='GroupAssignmentChoiceWidget' 
				checked value='-1'>&nbsp;Blank Page<br/>
		</ul>
	</div>
	<!-- Group Options -->
	{% for group in groups %}
		<h3><a href='#'>{{ group.title }}</a></h3>
		<div>
			<i>{{ group.description }}</i><br/>
			<ul>
				{% for assignment in group.assignment_set.all %}
				<input type=radio name='GroupAssignmentChoiceWidget' 
					value='{{ assignment.id }}'>&nbsp;{{ assignment.title }}<br/>
				{% endfor %}
			</ul>
		</div>
	{% endfor %}
</div>
<!-- End GroupAssignmentChoiceWidget.html -->